package com.wm.blog_admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wm.blog_admin.domain.CommentDo;
import com.wm.blog_admin.query.TCommentQuery;
import com.wm.blog_common.entity.TComment;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 评论表 Mapper 接口
 * </p>
 *
 * @author 半卷流年
 * @since 2020-03-24
 */
public interface TCommentMapper extends BaseMapper<TComment> {

    /**
     * 分页查询
     * @param page
     * @param query
     * @return
     */
    IPage<CommentDo> pageList(@Param("page") Page<CommentDo> page, @Param("query") TCommentQuery query);
}
